package com.framework.workflow.service;

import com.framework.workflow.dto.NodeUser;
import org.flowable.task.api.Task;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface IVariableService {
    HashMap<String, Object> getVariable(String procInstId);

    HashMap<String, Object> getVariable(String procInstId, String taskId);

    List<String> usersByRole(List<String> groups);

    List<NodeUser> userNodesByRole(List<String> groups);

    void saveNextTaskVariablesLocal(List<Task> tasks, Map<String, Object> variables);

    List<NodeUser> userNodeByIds(List<String> idList);

    NodeUser userNodeById(String id);

    NodeUser deptNodeById(String deptId);
}
